package com.atguigu.dao;

import com.atguigu.pojo.BasicBehavior;

import java.util.List;

public interface BasicBehaviorDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addBasicBehavior(BasicBehavior basicBehavior);
    public int deleteBasicBehaviorById(String id);
    public int updateBasicBehavior(BasicBehavior basicBehavior);
    public BasicBehavior queryBasicBehaviorById(String id);
    public BasicBehavior queryBasicBehaviorByStatusMakeAndClientId(String clientId);
    public BasicBehavior queryBasicBehaviorByStatusMakeAndClientIdAndMainTaskId(String clientId,String mainTaskId);
    public BasicBehavior queryBasicBehaviorByStatusMakeAndClientIdAndDeployServiceModuleId(String clientId,String deployServiceModuleId);

    public List<BasicBehavior> queryBasicBehaviors();
    public Integer queryForPageTotalCount();
    public List<BasicBehavior> queryForPageItems(Integer begin, Integer pageSize);
}
